<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <link rel="stylesheet" href="plug/css/css.css">
</head>
<script src="plug/js/jquery-1.9.1.min.js"></script>
<script src="plug/js/jquery.validate.min.js"></script>
<script src="plug/js/messages_zh.js"></script>
<script src="plug/js/countdown.js"></script>
<script>
</script>
<body>
欢迎${nickname}登录   ${giteename!=null&&giteename!=''?"Gitee账号":"<a href='/giteelogin'>Gitee绑定</a>"}${giteename}
    <img src="${giteepictrue}" alt="" style="width: 30px;height: 20px">




<table>
    
    <tr>
        <td colspan="11">
            <form action="/list">
              <input type="text" name="sname" placeholder="请输入学生姓名.." value="${map.sname}">
                <input type="text" name="rname" placeholder="请输入宿舍号.." value="${map.rname}">
                <input type="text" name="lanme" placeholder="请输入楼号.." value="${map.lanme}">
                <input type="submit" value="查询"> <a href="/getExcel">导出Excel</a>
            </form>
        </td>
    </tr>
    <tr>
        <td>宿舍号</td>
        <td>宿舍图片</td>
        <td>楼号</td>
        <td>入住学生</td>
        <td>入住时间</td>
    </tr>
    <c:forEach items="${list}" var="s">
        <tr>
            <td>${s.rname}</td>
            <td>
                <img src="/getImg?img=${s.pictrue}" alt="无法展示" style="width: 100px;height: 50px">
            </td>
            <td>${s.lname}</td>
            <td>${s.snames}</td>
            <td>${s.rdate}</td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="11">
            <a href="/toinsert">入住</a>
            <a href="/toEcharts">统计报表</a>
        </td>
    </tr>
</table>
<script>
</script>
</body>
</html>